package practise;

import java.util.HashMap;
import java.util.Map;

public class Test {
    public static void main(String[] args) {
        Student s1=new Student("hanser",12);
        Student s2=new Student("田想",12);
        Student s3=new Student("谢慧",22);

        Map<Student,String>map=new HashMap<>();
        map.put(s1,"海南");
        map.put(s1,"海南");
        map.put(s2,"海南");
        map.put(s3,"海南");

        System.out.println(map);
    }
}
